<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="estilo/style.css" />
	 <script language="JavaScript" type="text/javascript">	
		  function mostrarVentana(cliente){ 
		    	var con="\?";
				var idx=con+"cod_cliente="+cliente;
				var lnk="<s:url value='mostrar_cliente_v.action"+idx+"' />";
			    window.open(lnk,'','width=900,height=500,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes');
		   } 
    </script>
</head>
<body>
<div id='resultado_gd_aprxss' >
 <center><img id="indicatorc2" src="img/pg1.gif" alt="Cargando..." style="display: none" /></center>   
<table width="100%">
<s:set name="ver_vendedor" ><s:property value="ver_vendedor" /></s:set>
<s:set name="ver_fuente" ><s:property value="ver_fuente" /></s:set>
<s:set name="ver_accion" ><s:property value="ver_accion" /></s:set>
<tr Height='10px' >
			<td width='25%' class='tabla_th1' >Cliente</td>
			<td width='15%' class='tabla_th1' >Ciudad</td>
			<td width='5%'  class='tabla_th1' >Asignado</td>
		    <s:if test="%{#ver_vendedor=='SI'}">
		       <td width='10%' class='tabla_th1' >Vendedor</td>
		    </s:if>   
		    <td width='15%' class='tabla_th1' >Ultima Actividad</td> 
</tr>
 <s:iterator var="outer2" status="i_status" value="rpt_asig_cliente" >
        <s:set name="n_cod"><s:property value="#outer2.codigo" /></s:set>
        <s:set name="valx" ><s:property value="#outer2.statusa" /></s:set>
        <s:set name="n_des"><s:property value="#outer2.nombres" /></s:set>
	    <tr Height='10px'  >
		   <td width='25%' class='tit_td_pq' >
			   <s:property value="#outer2.nombres" />  
		   </td>
		   <td width='15%' class='tit_td_pq' >
		       <s:property value="#outer2.ciudad" />(<s:property value="#outer2.zona" />)
		   </td>
		   <td width='5%' class='tit_td_pq' >
		      <s:property value="#outer2.fecha" />
		   </td>
		   <s:if test="%{#ver_vendedor=='SI'}">
			    <td width='10%' class='tit_td_pq' >
			        <s:property value="#outer2.vendedor" />
			    </td>
		   </s:if> 
		   <td width='15%'  class='tit_td_pq' >
		     <span class='url_hist1' >
			    <a href="#" id='url_hist'  onclick="javascript:mostrarVentana('<s:property value="#outer2.codigo" />')"  >
				  	<s:property value="#outer2.status" />
				</a>
		     </span>		
		   </td>
	     </tr>
</s:iterator>
 </table>
 <table  width='100%' >
     <tr Height='10px' >
	   <td width='100%' colspan='5' class='tabla_th1' >.</td>
     </tr>
     <tr Height='10px' >
            <td width='50%' colspan='3'  ></td>
			<td width='25%' class='tabla_th1' >Total filas:</td>
			<td width='25%' class='tabla_th1' ><s:property value="total_registros" /></td>
     </tr>
 </table>
</div>
</body>
</html>
